from openai import OpenAI

from config.scaffolding_config import getAiConfig

aiConfig = getAiConfig()

MODEL_TYPE = aiConfig['type']
INPUT_SIZE = aiConfig['size']

AI_PROXY_INSTANCE = OpenAI(
    api_key=aiConfig['key'],
    base_url=aiConfig['url'],
)


def getAiProxy():
    return AI_PROXY_INSTANCE
